import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import User from "@/components/User";
import Phone from "@/components/Phone";

Vue.use(Router)

export default new Router({
  mode: 'history',//去除访问路径中的/#/
  routes: [
    {
      path: '/HelloWorld',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/user',
      name: 'User',
      component: User
    },
    {
      path: '/',
      name: 'Phone',
      component: Phone
    }
  ]
})
